package co.ca.impl;

import co.ca.ProductDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import qy.c.domain.Product;

import java.util.List;
@Service
@Transactional//事务提交
public class producDaoImpl implements ProductDao {
    @Autowired
    private ProductDao productDao;
    public List<Product> findAll() throws Exception {
       return productDao.findAll();


    }
}
